//
//  MPBTools+Method.h
//  MPTToolsLibrary
//
//  Created by jiaxuzhou on 2017/7/20.
//  Copyright © 2017年 jxzjxz. All rights reserved.
//

#import "MPBTools.h"
#import "MPBTools+addProperty.h"

@interface MPBTools (Method)


/**
 交换类A的两个方法。

 @param origSEL 之前的方法
 @param newSEL 交换之后的方法
 @param aclass 类A
 */
+ (void)swizzleOrigSelector:(SEL)origSEL newSelector:(SEL)newSEL inClass:(Class)aclass;


/**
 
异步添加一个计时器
 @param timer 计时器
 @param queue 队列
 @param mode 模式
 */
+ (void)addAsyncMethod:(SEL)method target:(id)target timeInterval:(NSInteger)count repeat:(BOOL)repeat inQueue:(dispatch_queue_t)queue Mode:(NSRunLoopMode)mode;

+ (void)removeAsyncMethodInTarget:(id)target;

+ (void)performSelector:(SEL)aSelector onObj:(id)obj onThread:(NSString *)thr withObject:(nullable id)arg waitUntilDone:(BOOL)wait;


@end
